/**
 * 
 */
package design_pattern.chainOfResponsibility;

/**
 * @author linzq
 *
 */
public class JiaHuan extends Player {

  public JiaHuan(Player successor) {
    super.successor = successor;
  }

  /*
   * (non-Javadoc)
   * 
   * @see chainOfResponsibility.Player#handle()
   */
  @Override
  public void handle() {
    if (DrumBeater.stop == true) {
      System.out.println("JiaHuan gotta drink.");
    } else {
      System.out.println("JiaHuan passed.");
      next();
    }
  }

}
